package biz.impl;

import java.util.List;

import biz.OrderDetailBiz;
import dao.OrderDetailDao;
import dao.impl.OrderDetailDaoImpl;
import entity.OrderDetail;

public class OrderDetailBizImpl implements OrderDetailBiz {
	private OrderDetailDao orderDetailDao = new OrderDetailDaoImpl();
	@Override
	public void addOrderDetail(OrderDetail detail) {
		orderDetailDao.addOrderDetail(detail);
	}

	@Override
	public List<OrderDetail> queryAllOrderDetail() {
		return orderDetailDao.queryAllOrderDetail();
	}

	@Override
	public OrderDetail queryOrderDetailByOrderDetailId(int orderDetailId) {
		return orderDetailDao.queryOrderDetailByOrderDetailId(orderDetailId);
	}

}
